Skip to content

Enhance MCP Documentation and Integration#436

Merged
MervinPraison merged 1 commit intomainfrom
develop
Mar 31, 2025
Merged

Enhance MCP Documentation and Integration#436
MervinPraison merged 1 commit intomainfrom
develop

Conversation

@MervinPraison
Copy link
Copy Markdown
Owner

@MervinPraison MervinPraison commented Mar 31, 2025

  • Updated mint.json to include additional MCP pages for improved navigation.
  • Added new documentation files for various MCP integrations, including AWS KB Retrieval, Everart, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, Slack, and Stock Price.
  • Introduced example scripts for each MCP integration to facilitate user understanding and implementation.
  • Ensured consistency in documentation format and clarity in instructions for setting up and using MCP tools.

Summary by CodeRabbit

  • Documentation

    • Added and updated comprehensive guides with quick start instructions, flowcharts, and configuration details for integrations with services such as AWS Knowledge Base, Brave Search, Everart AI, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, Slack, and Stock Price retrieval.
  • New Features

    • Introduced practical example scripts showcasing real-world integration setups.
  • Chores

    • Revised the documentation structure to include the new integration pages.

- Updated `mint.json` to include additional MCP pages for improved navigation.
- Added new documentation files for various MCP integrations, including AWS KB Retrieval, Everart, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, Slack, and Stock Price.
- Introduced example scripts for each MCP integration to facilitate user understanding and implementation.
- Ensured consistency in documentation format and clarity in instructions for setting up and using MCP tools.
@MervinPraison MervinPraison merged commit b1433c6 into main Mar 31, 2025
3 of 6 checks passed
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The changes primarily introduce extensive new documentation and examples for various MCP integrations within PraisonAI agents. Documentation files now cover integrations with AWS KB Retrieval, Brave Search, Everart, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, Slack, and Stockprice, along with guides for creating custom Python MCP clients and servers. Several existing docs have been updated for clarity and consistency, and the MCP pages listing has been expanded. Additionally, new example scripts demonstrate agent initialization and control flow, while a core file now strictly relies on environment-defined API keys.

Changes

File(s) Change Summary
docs/mcp/aws-kb-retrieval.mdx, docs/mcp/custom-python-client.mdx, docs/mcp/custom-python-server.mdx, docs/mcp/everart.mdx, docs/mcp/filesystem.mdx, docs/mcp/gdrive.mdx, docs/mcp/github.mdx, docs/mcp/gitlab.mdx, docs/mcp/google-maps.mdx, docs/mcp/memory.mdx, docs/mcp/postgres.mdx, docs/mcp/puppeteer.mdx, docs/mcp/redis.mdx, docs/mcp/sequential-thinking.mdx, docs/mcp/slack.mdx, docs/mcp/stockprice.mdx Added new integration guides for various services using MCP. Includes flowcharts, quick start instructions, dependency setup, and code examples.
docs/mcp/bravesearch.mdx, docs/mcp/custom.mdx Updated documentation: Revised titles, flowchart labels, dependency instructions, and reformatted code snippets for consistency.
docs/mint.json Updated MCP group pages to include new documentation entries.
examples/mcp/airbnb-mcp.py, examples/mcp/aws-kb-retrieval-mcp.py, examples/mcp/bravesearch-mcp.py, examples/mcp/custom-python-client.py, examples/mcp/custom-python-server.py, examples/mcp/everart-mcp.py, examples/mcp/filesystem-mcp.py, examples/mcp/gdrive-mcp.py, examples/mcp/github-mcp.py, examples/mcp/gitlab-mcp.py, examples/mcp/google-maps-mcp.py, examples/mcp/memory-mcp.py, examples/mcp/postgres-mcp.py, examples/mcp/puppeteer-mcp.py, examples/mcp/redis-mcp.py, examples/mcp/sequential-thinking-mcp.py, examples/mcp/slack-mcp.py Added multiple new examples demonstrating MCP integrations with various services, setting up agents and command executions with environment-based configurations.
src/praisonai-agents/mcp-mini-bravesearch.py Modified API key handling by removing the hardcoded fallback; now only uses the environment variable for brave_api_key.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant A as AI Agent
    participant M as MCP Tool
    participant S as External Service

    U->>A: Submit query/instructions
    A->>M: Initialize tool with configs & env variables
    M->>S: Send request to perform action
    S-->>M: Return response/data
    M-->>A: Relay result
    A-->>U: Deliver final output
Loading

Poem

I hop through lines of sparkling code,
With docs and scripts along the road.
MCP tools guide each eager leap,
In agent quests where secrets keep.
With whiskers twitching at every byte,
I celebrate change with joy and light!
πŸ₯•βœ¨


πŸ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 27027ba and fdf44b2.

πŸ“’ Files selected for processing (37)
  • docs/mcp/aws-kb-retrieval.mdx (1 hunks)
  • docs/mcp/bravesearch.mdx (2 hunks)
  • docs/mcp/custom-python-client.mdx (1 hunks)
  • docs/mcp/custom-python-server.mdx (1 hunks)
  • docs/mcp/custom.mdx (1 hunks)
  • docs/mcp/everart.mdx (1 hunks)
  • docs/mcp/filesystem.mdx (1 hunks)
  • docs/mcp/gdrive.mdx (1 hunks)
  • docs/mcp/github.mdx (1 hunks)
  • docs/mcp/gitlab.mdx (1 hunks)
  • docs/mcp/google-maps.mdx (1 hunks)
  • docs/mcp/memory.mdx (1 hunks)
  • docs/mcp/postgres.mdx (1 hunks)
  • docs/mcp/puppeteer.mdx (1 hunks)
  • docs/mcp/redis.mdx (1 hunks)
  • docs/mcp/sequential-thinking.mdx (1 hunks)
  • docs/mcp/slack.mdx (1 hunks)
  • docs/mcp/stockprice.mdx (1 hunks)
  • docs/mint.json (1 hunks)
  • examples/mcp/airbnb-mcp.py (1 hunks)
  • examples/mcp/aws-kb-retrieval-mcp.py (1 hunks)
  • examples/mcp/bravesearch-mcp.py (1 hunks)
  • examples/mcp/custom-python-client.py (1 hunks)
  • examples/mcp/custom-python-server.py (1 hunks)
  • examples/mcp/everart-mcp.py (1 hunks)
  • examples/mcp/filesystem-mcp.py (1 hunks)
  • examples/mcp/gdrive-mcp.py (1 hunks)
  • examples/mcp/github-mcp.py (1 hunks)
  • examples/mcp/gitlab-mcp.py (1 hunks)
  • examples/mcp/google-maps-mcp.py (1 hunks)
  • examples/mcp/memory-mcp.py (1 hunks)
  • examples/mcp/postgres-mcp.py (1 hunks)
  • examples/mcp/puppeteer-mcp.py (1 hunks)
  • examples/mcp/redis-mcp.py (1 hunks)
  • examples/mcp/sequential-thinking-mcp.py (1 hunks)
  • examples/mcp/slack-mcp.py (1 hunks)
  • src/praisonai-agents/mcp-mini-bravesearch.py (1 hunks)
✨ Finishing Touches
  • πŸ“ Generate Docstrings

πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request enhances the documentation and integration of the Model Context Protocol (MCP) within the PraisonAI agents framework. It introduces new documentation files and example scripts for various MCP integrations, including AWS KB Retrieval, Everart, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, and Slack. The mint.json file is updated to include these new MCP pages for improved navigation. The documentation aims to provide clear instructions and examples for setting up and using MCP tools with PraisonAI agents.

Highlights

  • Documentation Enhancement: Added comprehensive documentation for various MCP integrations, providing users with clear setup and usage instructions.
  • New MCP Integrations: Introduced documentation and examples for AWS KB Retrieval, Everart, Filesystem, Google Drive, GitHub, GitLab, Google Maps, Memory, PostgreSQL, Puppeteer, Redis, Sequential Thinking, and Slack MCP integrations.
  • Example Scripts: Included example scripts for each MCP integration to facilitate user understanding and implementation.
  • Updated Navigation: Updated mint.json to include the new MCP pages, improving overall documentation navigation.

Changelog

Click here to see the changelog
  • docs/mcp/aws-kb-retrieval.mdx
    • Created a new documentation file for AWS KB Retrieval MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/bravesearch.mdx
    • Modified the Brave Search MCP integration documentation.
    • Updated the diagram to reflect the query flow.
    • Added an install dependencies step to the quick start guide.
    • Removed the features section.
  • docs/mcp/custom-python-client.mdx
    • Created a new documentation file for a Custom Python MCP Client.
    • Included a diagram illustrating the client-server interaction.
    • Provided a quick start guide with steps for installing dependencies, setting up the server, creating the client, and running the client.
    • Added a note outlining the requirements for using the integration.
    • Added a section on using environment variables for better security and flexibility.
  • docs/mcp/custom-python-server.mdx
    • Created a new documentation file for a Custom Python MCP Server.
    • Included a diagram illustrating the client-server interaction.
    • Provided a quick start guide with steps for installing dependencies and saving the server code.
    • Added a note outlining the requirements for using the server.
  • docs/mcp/custom.mdx
    • Modified the custom MCP documentation.
    • Removed conda environment creation steps and updated dependency installation.
    • Simplified the agent execution command.
  • docs/mcp/everart.mdx
    • Created a new documentation file for Everart MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/filesystem.mdx
    • Created a new documentation file for Filesystem MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/gdrive.mdx
    • Created a new documentation file for Google Drive MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting up Google Drive credentials, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/github.mdx
    • Created a new documentation file for GitHub MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/gitlab.mdx
    • Created a new documentation file for GitLab MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/google-maps.mdx
    • Created a new documentation file for Google Maps MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/memory.mdx
    • Created a new documentation file for Memory MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/postgres.mdx
    • Created a new documentation file for PostgreSQL MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting up PostgreSQL, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/puppeteer.mdx
    • Created a new documentation file for Puppeteer MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/redis.mdx
    • Created a new documentation file for Redis MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting up Redis, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/sequential-thinking.mdx
    • Created a new documentation file for Sequential Thinking MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/slack.mdx
    • Created a new documentation file for Slack MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating a Python file, and running the agent.
    • Added a note outlining the requirements for using the integration.
  • docs/mcp/stockprice.mdx
    • Created a new documentation file for Stock Price MCP integration.
    • Included a diagram illustrating the integration flow.
    • Provided a quick start guide with steps for installing dependencies, setting API keys, creating the MCP server, creating the agent, and running the agent.
    • Added a note outlining the requirements for using the integration.
    • Added a Gradio UI example.
  • docs/mint.json
    • Updated the mint.json file to include the new MCP documentation pages.
  • examples/mcp/airbnb-mcp.py
    • Added an example script for Airbnb MCP integration.
  • examples/mcp/aws-kb-retrieval-mcp.py
    • Added an example script for AWS KB Retrieval MCP integration.
  • examples/mcp/bravesearch-mcp.py
    • Added an example script for Brave Search MCP integration.
  • examples/mcp/custom-python-client.py
    • Added an example script for Custom Python MCP Client.
  • examples/mcp/custom-python-server.py
    • Added an example script for Custom Python MCP Server.
  • examples/mcp/everart-mcp.py
    • Added an example script for Everart MCP integration.
  • examples/mcp/filesystem-mcp.py
    • Added an example script for Filesystem MCP integration.
  • examples/mcp/gdrive-mcp.py
    • Added an example script for Google Drive MCP integration.
  • examples/mcp/github-mcp.py
    • Added an example script for GitHub MCP integration.
  • examples/mcp/gitlab-mcp.py
    • Added an example script for GitLab MCP integration.
  • examples/mcp/google-maps-mcp.py
    • Added an example script for Google Maps MCP integration.
  • examples/mcp/memory-mcp.py
    • Added an example script for Memory MCP integration.
  • examples/mcp/postgres-mcp.py
    • Added an example script for PostgreSQL MCP integration.
  • examples/mcp/puppeteer-mcp.py
    • Added an example script for Puppeteer MCP integration.
  • examples/mcp/redis-mcp.py
    • Added an example script for Redis MCP integration.
  • examples/mcp/sequential-thinking-mcp.py
    • Added an example script for Sequential Thinking MCP integration.
  • examples/mcp/slack-mcp.py
    • Added an example script for Slack MCP integration.
  • src/praisonai-agents/mcp-mini-bravesearch.py
    • Removed default Brave API key.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with πŸ‘ and πŸ‘Ž on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Trivia time!

What does the acronym 'API' stand for in the context of software development?

Click here for the answer
'API' stands for Application Programming Interface.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the documentation and integration of MCP (Model Context Protocol) by adding new documentation files and example scripts for various MCP integrations. The addition of these guides and examples should help users understand and implement MCP tools more effectively. The documentation covers a wide range of integrations, including AWS, Google Drive, GitHub, and more.

Summary of Findings

  • Inconsistent Dependency Installation Instructions: The documentation for some MCP integrations instructs users to install praisonaiagents and mcp using pip, while others instruct users to create a conda environment and install dependencies there. This inconsistency could confuse users and lead to errors.
  • Hardcoded Paths in Custom Python Client Example: The custom-python-client.mdx file includes hardcoded paths for the Python interpreter and server script. This makes the example less portable and requires users to manually update the paths to match their local environment.
  • Missing Error Handling in Example Scripts: The example scripts provided in the documentation lack comprehensive error handling. This could make it difficult for users to debug issues and understand how to handle potential errors in their own implementations.
  • Incomplete Documentation for Custom Python MCP Server: The custom-python-server.mdx file is missing the actual code implementation for the custom Python MCP server, which is essential for users to understand and set up the server correctly.

Merge Readiness

While the pull request introduces valuable documentation and examples for MCP integrations, several issues need to be addressed before merging. Specifically, the inconsistent dependency installation instructions, hardcoded paths in the custom Python client example, missing error handling in example scripts, and incomplete documentation for the custom Python MCP server should be resolved to ensure a smooth user experience. I am unable to approve this pull request, and recommend that it not be merged until these issues are addressed.

Comment on lines +30 to +33
## Server Implementation

Below is the complete implementation of the custom Python MCP server:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The section "Server Implementation" is followed by "Below is the complete implementation of the custom Python MCP server:", but the actual code is missing here. Please include the code snippet for the server implementation.

import yfinance as yf
from mcp.server.fastmcp import FastMCP

mcp = FastMCP("stock_prices")

@mcp.tool()
async def get_stock_price(ticker: str) -> str:
    """Get the current stock price for a given ticker symbol.
    
    Args:
        ticker: Stock ticker symbol (e.g., AAPL, MSFT, GOOG)
        
    Returns:
        Current stock price as a string
    """
    if not ticker:
        return "No ticker provided"
    try:
        stock = yf.Ticker(ticker)
        info = stock.info
        current_price = info.get('currentPrice') or info.get('regularMarketPrice')
        if not current_price:
            return f"Could not retrieve price for {ticker}"
        return f"${current_price:.2f}"
        
    except Exception as e:
        return f"Error: {str(e)}"

if __name__ == "__main__":
    mcp.run(transport='stdio')

Comment on lines 4 to +5
# Use the API key from environment or set it directly
brave_api_key = os.getenv("BRAVE_API_KEY") or "BSAbRwmwE-WV_7gKR1ZZIdE2Twa0l4w"
brave_api_key = os.getenv("BRAVE_API_KEY")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Removing the default API key is a good security practice. Ensure that the application handles the case where the BRAVE_API_KEY environment variable is not set, providing a helpful error message or fallback mechanism.

Suggested change
# Use the API key from environment or set it directly
brave_api_key = os.getenv("BRAVE_API_KEY") or "BSAbRwmwE-WV_7gKR1ZZIdE2Twa0l4w"
brave_api_key = os.getenv("BRAVE_API_KEY")
brave_api_key = os.getenv("BRAVE_API_KEY")
if not brave_api_key:
raise ValueError("BRAVE_API_KEY environment variable must be set.")

Comment on lines +51 to +52
tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/custom-python-server.py")
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This line contains a hardcoded path to the Python interpreter and the custom server script. This makes the example less portable. Suggest using environment variables or a more flexible path configuration.

tools = MCP(f"{os.getenv('PYTHON_PATH', '/path/to/python')} {os.getenv('SERVER_PATH', '/path/to/custom-python-server.py')}")

Comment on lines +15 to +16

everart_agent.start("Generate an artistic image of a sunset") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
everart_agent.start("Generate an artistic image of a sunset")
try:
everart_agent.start("Generate an artistic image of a sunset")
except Exception as e:
print(f"Error: {e}")

Comment on lines +15 to +16

gdrive_agent.start("List files in my Google Drive") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
gdrive_agent.start("List files in my Google Drive")
try:
gdrive_agent.start("List files in my Google Drive")
except Exception as e:
print(f"Error: {e}")

Comment on lines +11 to +12

puppeteer_agent.start("Navigate to example.com and take a screenshot") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
puppeteer_agent.start("Navigate to example.com and take a screenshot")
try:
puppeteer_agent.start("Navigate to example.com and take a screenshot")
except Exception as e:
print(f"Error: {e}")

Comment on lines +14 to +15

redis_agent.start("Set a key-value pair in Redis") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
redis_agent.start("Set a key-value pair in Redis")
try:
redis_agent.start("Set a key-value pair in Redis")
except Exception as e:
print(f"Error: {e}")

Comment on lines +11 to +12

sequential_agent.start("Break down the process of making a cup of tea") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
sequential_agent.start("Break down the process of making a cup of tea")
try:
sequential_agent.start("Break down the process of making a cup of tea")
except Exception as e:
print(f"Error: {e}")

Comment on lines +19 to +20

slack_agent.start("Send a message to the general channel") No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding error handling to the agent's start method call to catch potential exceptions during the MCP call. This would improve the robustness of the example and guide users on how to handle errors in their own implementations.

Suggested change
slack_agent.start("Send a message to the general channel")
try:
slack_agent.start("Send a message to the general channel")
except Exception as e:
print(f"Error: {e}")

Comment on lines +26 to +30
<Step title="Install Dependencies">
Make sure you have Node.js installed, as the MCP server requires it:
```bash
pip install praisonaiagents mcp
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This step installs praisonaiagents and mcp using pip. Ensure this is consistent across all MCP integration guides. Consider mentioning the need for a virtual environment to avoid conflicts with system-level packages.

pip install praisonaiagents mcp

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2025

βœ… Deploy Preview for praisonai ready!

Name Link
πŸ”¨ Latest commit fdf44b2
πŸ” Latest deploy log https://app.netlify.com/sites/praisonai/deploys/67ea56b5c3cd3b000822da10
😎 Deploy Preview https://deploy-preview-436--praisonai.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

shaneholloman pushed a commit to shaneholloman/praisonai that referenced this pull request Feb 4, 2026
Enhance MCP Documentation and Integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant